import random

'''
使用 Python 如何生成 200 个激活码
'''

def randomstr(n):
  chars = []
  for i in range(8):
    chars.append(str(i + 1))
  for i in range(26):
    chars.append(chr(i + 65))
  s = ''
  for _ in range(n):
    s += random.choice(chars)
  return s

def activation_code():
  ls = []
  for i in range(5):
    ls.append(randomstr(5))
  return '-'.join(ls)
  
if __name__ == "__main__":
  for i in range(200):
    print(i, activation_code())